<?php
class Socialprofiles_Model_Accessleveldecision implements Socialprofiles_Model_Mainable{
    
    public function main(array $variables = null) {
        if(isset($_SESSION['username']) && isset($_SESSION['access_level']) && ($_SESSION['access_level']) < 1){
            session_destroy();
            header("Location: ".SITE_ROOT."login.html");
        }
    }

}
